﻿<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="CityFly" xmlns:page="urn:page">
    <xsl:output method="html" encoding="utf-8"/>
  <xsl:param name="rowcount"/>			<!--数据库总记录数-->
  <xsl:param name="maxrow"/>				<!--每页记录数-->
  <xsl:param name="curpage"/>				<!--当前页码-->
  <xsl:param name="param"/>					<!--引入 param 参数-->
  <xsl:param name="templatename"/>	<!--Label.xml 模块名称-->
  <xsl:param name="orderby"/>				<!--Label.xml orderby 参数-->
  <xsl:param name="where"/>					<!--Label.xml where 参数-->
  <xsl:param name="runtime"/>				<!--运行时长-->
  <msxsl:script language="javascript" implements-prefix="user">function numOptions(fS,fE,fV){
    var str ='';
    for(var i=int(fS);i&lt;=int(fE);i++){
    str=str+"&lt;option"
    if(i==fV){str=str+" selected='1' "}
    var val ='';
    for(var j=i.toString().length;j&lt;fS.toString().length;j++){
    val = '0' + val;
    }
    str=str+" value='"+val+i+"'&gt;"+val+i+"&lt;/option&gt;";
    }
    return str;
    }
    function InputsList(inputName,num,values){
    var s='';
    for(var i=0;i&lt;num;i++){
    s=s+'&lt;input style="float:left;margin:2px;" id="F_BizProcuts" maxlength="20" class="w100" value="'+StrSplit(values,',',i)+'" name="F_BizProcuts" /&gt;';
    }
    return s;
    }
    function options(text,values,spChar){
    var s='';
    if(values=='')return '';
    var num = values.split(spChar).length;
    if(num==0)return '';
    for(var i=0;i&lt;num;i++){
    s=s+'&lt;option value="'+StrSplit(values,spChar,i)+'"&gt;'+StrSplit(text,spChar,i)+'&lt;/&gt;';
    }
    return s;
    }
    function StrSplit(Str,splitChar,n){
    if(Str.length=0){return ''}
    var a=Str.replace(/'/g,"").split(splitChar);
    if(n&lt;a.length){
    if(a[n].length==0)return '';
    return a[n];
    }
    return '';
    }</msxsl:script>
  <xsl:template match="/">
    <div class="titleA">
        <xsl:if test="count(rows/row)=0">
          新增
        </xsl:if>
        <xsl:if test="count(rows/row)!=0">
          编辑
        </xsl:if>
        广告信息
    </div>
    <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#E0E0E0" style="text-align:left" >
      <form name="form1" method="post" id="form1">
        <tr valign="top">
          <td bgcolor="#FFFFFF" class="bf6">编号：</td>
          <td bgcolor="#FFFFFF" class="bwhite"><xsl:value-of select="rows/row/ID"/>
          <input name="editID" type="hidden" id="editID">
        <xsl:attribute name="value"><xsl:value-of select="rows/row/ID"/>
        <xsl:if test="count(rows/row)=0">
          0
        </xsl:if>
        </xsl:attribute>
        </input></td>
        </tr>
        <tr valign="top">
          <td width="150" bgcolor="#FFFFFF" class="bf6">调用KEY：<span class="red">*</span></td>
          <td bgcolor="#FFFFFF" class="bwhite"><input name="key" type="text" class="w250" id="key" value="{rows/row/F_Key}" /></td>
        </tr>
        <tr valign="top">
          <td width="150" bgcolor="#FFFFFF" class="bf6">类型：<span class="red">*</span></td>
          <td bgcolor="#FFFFFF" class="bwhite"><select name="type">
            <option value="0"><xsl:if test="rows/row/F_Type=0"><xsl:attribute name="selected">1</xsl:attribute></xsl:if>文本链</option>
            <option value="1"><xsl:if test="rows/row/F_Type=1"><xsl:attribute name="selected">1</xsl:attribute></xsl:if>图片</option>
            <option value="2"><xsl:if test="rows/row/F_Type=2"><xsl:attribute name="selected">1</xsl:attribute></xsl:if>HTML代码</option>
          </select></td>
        </tr>
        <tr valign="top">
          <td width="150" bgcolor="#FFFFFF" class="bf6">标题：<span class="red">*</span></td>
          <td bgcolor="#FFFFFF" class="bwhite"><input name="title" type="text" class="w250" id="title" value="{rows/row/F_Title}"/></td>
        </tr>
        
        <tr valign="top">
          <td width="150" bgcolor="#FFFFFF" class="bf6">标题样式：<span class="red">*</span></td>
          <td bgcolor="#FFFFFF" class="bwhite"><input name="style" class="w250" id="style" value="{rows/row/F_Style}"/></td>
        </tr>
        <tr valign="top">
          <td width="150" bgcolor="#FFFFFF" class="bf6">图片路径：<span class="red">*</span></td>
          <td bgcolor="#FFFFFF" class="bwhite"><textarea name="image" rows="6" class="w550" id="image"><xsl:value-of select="rows/row/F_Image"/></textarea></td>
        </tr>
        <tr valign="top">
          <td width="150" bgcolor="#FFFFFF" class="bf6">链接路径：<span class="red">*</span></td>
          <td bgcolor="#FFFFFF" class="bwhite"><input name="url" class="w250" id="url" value="{rows/row/F_Url}" /></td>
        </tr>
        <tr valign="top">
          <td width="150" bgcolor="#FFFFFF" class="bf6">序号：<span class="red">*</span></td>
          <td bgcolor="#FFFFFF" class="bwhite">
              <input name="order" type="text" id="order" value="{rows/row/F_Order}" />
          </td>
        </tr>
        <tr valign="top">
          <td width="150" bgcolor="#FFFFFF" class="bf6">修改时间：<span class="red">*</span></td>
          <td bgcolor="#FFFFFF" class="bwhite"><xsl:value-of select="rows/row/F_UpdateTime"/>&nbsp;</td>
        </tr>
        <tr valign="top">
          <td width="150" bgcolor="#FFFFFF" class="bf6">状态：<span class="red">*</span></td>
          <td bgcolor="#FFFFFF" class="bwhite"><select id="state" name="state" class="w100">
            <option value="0">
              <xsl:if test="rows/row/F_State=0">
                <xsl:attribute name="selected">1</xsl:attribute>
              </xsl:if>
              禁用</option>
            <option value="1">
              <xsl:if test="rows/row/F_State=1">
                <xsl:attribute name="selected">1</xsl:attribute>
              </xsl:if>
              启用</option>
          </select></td>
        </tr>
        <tr valign="top">
          <td width="150" bgcolor="#FFFFFF" class="bf6">&nbsp;</td>
          <td bgcolor="#FFFFFF" class="bwhite">
          <input type="button" name="Submit" value="保存并返回" onclick="if(TM.saveContentCmd(this,form1,false)==1)TM.pList()"  class="btnC"/>
          <input type="button" name="Submit" value="取消返回" onclick="TM.closeTab();"  class="btnC"/>
          <input name="f" type="hidden" id="f" value="@广告" /></td>
        </tr>
      </form>
    </table>
  </xsl:template>
</xsl:stylesheet>
